package com.liohi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 
 * @TableName laboratory_report
 */
@TableName(value ="laboratory_report")
@Data
public class LaboratoryReport implements Serializable {
    /**
     * 
     */
    @TableId(value = "process_result_id", type = IdType.AUTO)
    private Integer processResultId;

    /**
     * 
     */
    @TableField(value = "experiments_id")
    private Integer experimentsId;

    /**
     * 
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 
     */
    @TableField(value = "class_name")
    private String className;

    /**
     * 
     */
    @TableField(value = "class_number")
    private String classNumber;

    /**
     * 
     */
    @TableField(value = "end_time")
    private LocalDateTime endTime;

    /**
     * 
     */
    @TableField(value = "exp_name")
    private String expName;

    /**
     * 
     */
    @TableField(value = "exp_teacher")
    private String expTeacher;

    /**
     * 
     */
    @TableField(value = "exp_time")
    private LocalDateTime expTime;

    /**
     * 
     */
    @TableField(value = "fz_name")
    private String fzName;

    /**
     * 
     */
    @TableField(value = "lab_name")
    private String labName;

    /**
     * 
     */
    @TableField(value = "resource_name")
    private String resourceName;

    /**
     * 
     */
    @TableField(value = "report")
    private String report;

    /**
     * 
     */
    @TableField(value = "score")
    private Integer score;

    /**
     * 
     */
    @TableField(value = "score_info")
    private String scoreInfo;

    /**
     * 
     */
    @TableField(value = "start_time")
    private LocalDateTime startTime;

    /**
     * 
     */
    @TableField(value = "stu_number")
    private String stuNumber;

    /**
     * 
     */
    @TableField(value = "use_time")
    private String useTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        LaboratoryReport other = (LaboratoryReport) that;
        return (this.getProcessResultId() == null ? other.getProcessResultId() == null : this.getProcessResultId().equals(other.getProcessResultId()))
            && (this.getExperimentsId() == null ? other.getExperimentsId() == null : this.getExperimentsId().equals(other.getExperimentsId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getClassName() == null ? other.getClassName() == null : this.getClassName().equals(other.getClassName()))
            && (this.getClassNumber() == null ? other.getClassNumber() == null : this.getClassNumber().equals(other.getClassNumber()))
            && (this.getEndTime() == null ? other.getEndTime() == null : this.getEndTime().equals(other.getEndTime()))
            && (this.getExpName() == null ? other.getExpName() == null : this.getExpName().equals(other.getExpName()))
            && (this.getExpTeacher() == null ? other.getExpTeacher() == null : this.getExpTeacher().equals(other.getExpTeacher()))
            && (this.getExpTime() == null ? other.getExpTime() == null : this.getExpTime().equals(other.getExpTime()))
            && (this.getFzName() == null ? other.getFzName() == null : this.getFzName().equals(other.getFzName()))
            && (this.getLabName() == null ? other.getLabName() == null : this.getLabName().equals(other.getLabName()))
            && (this.getResourceName() == null ? other.getResourceName() == null : this.getResourceName().equals(other.getResourceName()))
            && (this.getReport() == null ? other.getReport() == null : this.getReport().equals(other.getReport()))
            && (this.getScore() == null ? other.getScore() == null : this.getScore().equals(other.getScore()))
            && (this.getScoreInfo() == null ? other.getScoreInfo() == null : this.getScoreInfo().equals(other.getScoreInfo()))
            && (this.getStartTime() == null ? other.getStartTime() == null : this.getStartTime().equals(other.getStartTime()))
            && (this.getStuNumber() == null ? other.getStuNumber() == null : this.getStuNumber().equals(other.getStuNumber()))
            && (this.getUseTime() == null ? other.getUseTime() == null : this.getUseTime().equals(other.getUseTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getProcessResultId() == null) ? 0 : getProcessResultId().hashCode());
        result = prime * result + ((getExperimentsId() == null) ? 0 : getExperimentsId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getClassName() == null) ? 0 : getClassName().hashCode());
        result = prime * result + ((getClassNumber() == null) ? 0 : getClassNumber().hashCode());
        result = prime * result + ((getEndTime() == null) ? 0 : getEndTime().hashCode());
        result = prime * result + ((getExpName() == null) ? 0 : getExpName().hashCode());
        result = prime * result + ((getExpTeacher() == null) ? 0 : getExpTeacher().hashCode());
        result = prime * result + ((getExpTime() == null) ? 0 : getExpTime().hashCode());
        result = prime * result + ((getFzName() == null) ? 0 : getFzName().hashCode());
        result = prime * result + ((getLabName() == null) ? 0 : getLabName().hashCode());
        result = prime * result + ((getResourceName() == null) ? 0 : getResourceName().hashCode());
        result = prime * result + ((getReport() == null) ? 0 : getReport().hashCode());
        result = prime * result + ((getScore() == null) ? 0 : getScore().hashCode());
        result = prime * result + ((getScoreInfo() == null) ? 0 : getScoreInfo().hashCode());
        result = prime * result + ((getStartTime() == null) ? 0 : getStartTime().hashCode());
        result = prime * result + ((getStuNumber() == null) ? 0 : getStuNumber().hashCode());
        result = prime * result + ((getUseTime() == null) ? 0 : getUseTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", processResultId=").append(processResultId);
        sb.append(", experimentsId=").append(experimentsId);
        sb.append(", userId=").append(userId);
        sb.append(", className=").append(className);
        sb.append(", classNumber=").append(classNumber);
        sb.append(", endTime=").append(endTime);
        sb.append(", expName=").append(expName);
        sb.append(", expTeacher=").append(expTeacher);
        sb.append(", expTime=").append(expTime);
        sb.append(", fzName=").append(fzName);
        sb.append(", labName=").append(labName);
        sb.append(", resourceName=").append(resourceName);
        sb.append(", report=").append(report);
        sb.append(", score=").append(score);
        sb.append(", scoreInfo=").append(scoreInfo);
        sb.append(", startTime=").append(startTime);
        sb.append(", stuNumber=").append(stuNumber);
        sb.append(", useTime=").append(useTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}